#!/usr/bin/env bash

# only needed for ubuntu 14.04
source common.sh

if [[ ! -d "openssl-1.0.2n" ]]; then
   curl -O https://www.openssl.org/source/openssl-1.0.2n.tar.gz
   tar -xzf openssl-1.0.2n.tar.gz
   cd openssl-1.0.2n
   ./config --prefix="$INSTALL_DIR" --openssldir="$INSTALL_DIR" && make && make install
fi
